@(message: Array[String])(implicit request: RequestHeader,messagesProvider: MessagesProvider,session:Session)
@import views.html.dingtalk.ionicmain

@import helper._

@ionicmain(message(0),scripts=js) {
<ion-header>
    <ion-toolbar>
        <ion-buttons slot="start">
            <ion-menu-button></ion-menu-button>
        </ion-buttons>
        <ion-title>NAS用户信息（<span id="username">@session.get("uname")</span>）</ion-title>
    </ion-toolbar>
</ion-header>
<ion-content class="ion-padding">


<div class="layui-form layui-border-box layui-table-view" style=" height:242px;">
    <div style=" height:22px;"></div>
    <div class="site-text site-block">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block layui-col-md4">
                    <input type="text" @message(1) name="p1" value='@message(0)' class="layui-input" lay-verify="required">
                </div>
            </div>
            @if(message(2).nonEmpty){
            <div class="layui-form-item">
                <label class="layui-form-label">Nas组</label>
                <div class="layui-input-block layui-col-md4">
                    <input type="text" readonly name="p2" style="background-color:#eee;" value='@message(2)' class="layui-input" lay-verify="required">
                </div>
            </div>}
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-block layui-col-md4">
                    <input type="password" name="p3" class="layui-input" lay-verify="required">
                </div>
            </div>
            @CSRF.formField
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formnasprofile">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>


</div>
<div class="layui-border-box" style=" height:162px;">
    <div><article>
        <li>
            <span>文件服务器地址：</span><code style="color:#F00;">\\192.168.2.21</code><span>（请在文件管理器中打开）</span>
        </li>
        <li><img src='@routes.Assets.versioned("images/smbaddress.png")'></li>
        <li>
        <pre><code>默认未创建，用户名可以自定义，创建后不可修改。用户名最长为16个字符，用户名不能包含特殊字符。<br>
用户名即是登陆账户也是个人目录名，Nas组对应部门共享目录权限，默认组为XX，可联系管理员修改Nas组。<br>
上传文件的权限为仅上传用户具有读写权限，其他用户只读。</code></pre>
        </li>
        <li>
            <span>删除打开的共享链接</span>
            <pre><code>net use * /del /y</code>
    </pre>
        </li>
        <li>
            <span>以当前用户打开默认共享链接(示例用户名：<span style="color:#F00;">username</span>，密码：<span style="color:#F00;">password</span>)</span>
            <pre> <code>net use \\192.168.2.21 <span style="color:#F00;">password</span> /user:<span style="color:#F00;">username</span> |　explorer \\192.168.2.21</code>
    </pre>
        </li></article>
    </div>

</div>
</ion-content>

}
@js = {
<script src='@routes.Assets.versioned("js/dingtalk_pc.js")' type="text/javascript"></script>
}
